<div class="idx"><img src="__THEME__/public/statics/imgs/ad.jpg" width="100%" height="90" /></div>
<div class="clear"></div>
<div class="news">
	<div class="news_l">
		<link href="__THEME__/public/statics/css/slide.css" type="text/css" rel="stylesheet">
        <div id="myslide" style="width:305px;height:325px">
            <table width="100%" cellSpacing="0" cellPadding="0">
            <tr>
            <td class="pic" id="bimg" style="height:281px">
            	<!--查询推荐位2（首页幻灯）的内容-->
				{asp i=0}
				{cmstag:news table='article' flag=2 field='id,thumb,title,url' where="thumb<>''" order='ordid asc,update_time' loop=5}
					<div class="{if i=0}dis{else}undis{/if}" name="f" style="height:100%">
					<a href="[news:id fun='getArcUrl(@me)']" title="[news:title]" target="_blank"><img alt="[news:title]" style="width:305px;height:281px;" src="[news:thumb]" border="0"></a>
					</div>
				{$i++}
				{/cmstag:news}
                <table id="font_hd" width="100%" cellSpacing="0" cellPadding="0">
                <tr>
                <td class="title" id="info">
				{asp i=0}
				{cmstag:news table='article' flag=2 field='id,thumb,title,url' order='ordid asc,update_time' loop=5}
					<div class="{if i=0}dis{else}undis{/if}" name="f">
					<a href="[news:id fun='getArcUrl(@me)']" title="[news:title]" target="_blank">[news:title]</a>
					</div>
				{$i++}
				{/cmstag:news}
                </td>
                <td id="simg" nowrap="nowrap" style="text-align:right">
				{asp i=0}
				{cmstag:news table='article' flag=2 field='id,thumb,title,url' order='ordid asc,update_time' loop=5}
					<div class="{if i=0}{else}f1{/if}" onclick=play(x[{$i}],{$i}) name="f">{$i+1}</div>
				{$i++}
				{/cmstag:news}
                </td>
                </tr>
                </table>
                <script src="__THEME__/public/statics/js/slide.js"></script>
            </td>
            </tr>
            </table>
        </div>
    </div>
	<div class="news_c">
		<ul>
        <!--查询推荐位1（首页中间）的内容-->
			{asp i=0}
			{cmstag:news table='article' flag=1 field='id,thumb,title,url,intro' order='ordid asc,update_time' loop=5}
			<li {if (i mod 5)=0}class="tt"{/if}><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">{if (i mod 5)=0}[news:title fun='ab.c.cutstr(@me,45)']{else}[news:title fun='ab.c.cutstr(@me,24)']{/if}</a></li>
			{$i++}
			{/cmstag:news}
		</ul>
	</div>
	<div class="news_r">
		<div class="tit"><h4 class="l">今日视点</h4></div>
		<ul>
			<!--查询推荐位3（今日视点）的内容-->
			{asp i=0}
			{cmstag:news table='article' flag=3 field='id,thumb,title,url,intro' order='len(thumb) desc,ordid asc,update_time' loop=5}
			{if i<2}
            <li class="pic"><img src="[news:thumb]" width="70" height="60" align="left" /><span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,20)']</a></span><div class="into">[news:intro fun='ab.c.cutstr(@me,30)']</div></li>
			{else}
			<li class="nopic"><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,40)']</a></li>
			{/if}
			{$i++}
			{/cmstag:news}
		</ul>
	</div>
</div>
<div class="clear"></div>	
<div class="newstwo">
    <div class="newstwo_l">
        <h4>推荐阅读</h4>
        <div class="clear"></div>
        <ul>
            <!--查询推荐位4（推荐阅读）的内容-->
			{asp i=0}
			{cmstag:news table='article' flag=4 field='id,thumb,title,url,intro' order='ordid asc,update_time' rows=6 offset=0}
            {if i=0}
            <li class="pic"><img src="[news:thumb]" width="108" align="left" /><span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,25)']</a></span><div class="into">[news:intro fun='ab.c.cutstr(@me,70)']</div></li>
            {else}
            <li class="nopic"><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,40)']</a></li>
            {/if}
			{$i++}
			{/cmstag:news}
        </ul>
        <ul>
            <!--查询推荐位4（推荐阅读）的内容-->
			{asp i=0}
			{cmstag:news table='article' flag=4 field='id,thumb,title,url,intro' order='ordid asc,update_time' rows=6 offset=6}
            {if i=0}
            <li class="pic"><img src="[news:thumb]" width="108" align="left" /><span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,25)']</a></span><div class="into">[news:intro fun='ab.c.cutstr(@me,70)']</div></li>
            {else}
            <li class="nopic"><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,40)']</a></li>
            {/if}
			{$i++}
			{/cmstag:news}
        </ul>
    </div>
	<div class="newstwo_r">
		<h4 class="l">新闻焦点</h4>
        <ul>
            <!--查询推荐位5（新闻焦点）的内容-->
			{asp i=0}
			{cmstag:news table='article' field='id,thumb,title,url,intro' order='len(thumb) desc,ordid asc,update_time' loop=5 }
            {if i<2}
            <li class="pic"><img src="[news:thumb]" width="70" height="60" align="left" /><span><a href="[news:id fun='getArcUrl(@me)']" title="{$t.title}">[news:title fun='ab.c.cutstr(@me,20)']</a></span><div class="into">[news:intro fun='ab.c.cutstr(@me,30)']</div></li>
            {else}
            <li class="nopic"><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,30)']</a></li>
            {/if}
			{$i++}
			{/cmstag:news}
        </ul>
    </div>
</div>
<div class="clear"></div>
<div class="idx"><img src="__THEME__/public/statics/imgs/ad.jpg" width="100%" height="90" /></div>
<div class="clear"></div>
<!--循环输出顶级栏目下面的子栏目及其内容-->
{cmstag:cat1 table='class' where='typeid=0 and module_id=1 and pid={$topid}' order='ordid asc' loop=10 }
<div class="newsthree">
    <div class="h1">
        <h4 class="l">[cat1:name]</h4>
        <div class="r">
			{cmstag:cat2 table='class' where='typeid=0 and module_id=1 and pid=[cat1:id]' order='ordid asc' loop=10 }
            <a href="[cat2:id fun='catUrl(@me)']" title="[cat2:name]">[cat2:name]</a>
            {/cmstag:cat2}
            <a href="[cat1:id fun='catUrl(@me)']">更多>></a>
		</div>
    </div>
	<div class="clear"></div>
	<div class="newsthree_l">
		<ul>
        	<!--循环输出当前栏目下面的数据，我们按缩略图排序，因为第一行要输出一个图片，你懂得！-->
			{asp i=0}
			{cmstag:news table='article' where='classid in( [cat1:id fun='child_ids(@me,true)'] )' field='id,title,thumb,intro,url' order='thumb' loop=8 }
            {if i=0}
            <li class="pic"><img src="[news:thumb]" width="108" height="82" align="left" onerror="this.src='__THEME__/public/statics/imgs/nopic.gif';this.onerror=null" /><span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,25)']</a></span><div class="into">[news:intro fun='ab.c.cutstr(@me,25)']</div></li>
            {else}
            <li class="nopic"><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,44)']</a></li>
            {/if}
			{$i++}
			{/cmstag:news}
		</ul>
	</div>
	<div class="newsthree_c">
		<ul>
        	<!--循环输出当前栏目下面的数据，我们按最新排序-->
			{cmstag:news table='article' where='classid in( [cat1:id fun='child_ids(@me,true)'] )' field='id,title,url' order='id' loop=12 }
            <li><span class="date">10-02</span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,40)']</a></li>
            {/cmstag:news}
		</ul>
	</div>
	<div class="newsthree_r">
		<div class="tit"><h4 class="l">阅读排行</h4></div>
		<div class="clear"></div>
		<ul>
		<!--循环输出当前栏目下面的数据，我们按点击排序-->
		{asp i=0}
		{cmstag:news table='article' where='classid in( [cat1:id fun='child_ids(@me,true)'] )' field='id,title,url' order='hits' loop=10 }
        <li><span {if i<3}class="one"{/if}>{$i+1}</span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,33)']</a></li>
		{$i++}
        {/cmstag:news}
		</ul>
	</div>
</div>
<div class="clear"></div>
{/cmstag:cat1}
<div class="idx"><img src="__THEME__/public/statics/imgs/ad.jpg" width="100%" height="90" /></div>
